<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/','PagesController@index');

Route::get('users',['uses'=>'UsersController@index']);
Route::get('users/create',['uses'=>'UsersController@create']);
Route::post('users',['uses'=>'UsersController@store']);
/*Route::get('users',function(){
    $users=[
        '0'=>[
            'first_name'=>'Tianrui',
            'last_name'=>'Chen',
            'location'=>'nanjing'
        ],
        '1'=>[
            'first_name'=>'Zitong',
            'last_name'=>'Mao',
            'location'=>'tokyo'
        ]

    ];
    return $users;
});
*/
Auth::routes();
 

Route::get('/home', 'HomeController@index')->name('home');
